package com.chen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author chen
 * @since 2022-12-13
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("biz_product_stock")
@ApiModel(value = "ProductStock对象", description = "")
public class ProductStock extends Model<ProductStock> {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("p_num")
    private String pNum;

    @ApiModelProperty("商品库存结余")
    @TableField("stock")
    private Long stock;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
